
#ifndef _HEAD_H
#define _HEAD_H
#include<my_head.h>
#endif

#ifndef _USER_H
#define _USER_H
#include "user.h"
#endif

#define MAX_USER_SIZE 10
typedef struct UserManager
{
        User *users;
        int curr_user_size;
        int max_size;
        //struct epoll_event[MAX_USER_SZIE];
}User_manager;

User_manager * create_and_init_userM(int max_size);

bool um_add_user(User_manager * manager , User * user);


//找到user ， 没有就返回NULL
User* um_judge_user_exist_by_fd(User_manager * manager , int fd);
